home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / AMOS / AMOSList-0697 / AMOSLIST / text0198.txt < prev    next >
Encoding:
Text File  |  1997-07-03  |  921 b   |  32 lines

  1. On 19-Jun-97, MCraven629@aol.com wrote:
  2.  
  3. >To rotate a point about the world Y-axis:
  4.  
  5. >            sang=sin(angle) : cang=cos(angle)            
  6. >            tempx = (x * cang) + (z * sang)
  7. >            tempz = (z * cang) - (x * sang)
  8.  
  9. Hmm... here are tempx and tempz
  10.  
  11. >            y=tempy
  12. >            z=tempz
  13.  
  14. but here are tempy and tempz. Where is the error?
  15.  
  16. >            dz = z - _zoom
  17. >            tempx = (x * cang) + (dz * sang)
  18. >            tempz = ((dz * cang) - (x * sang)) + _zoom
  19. >            x=tempx
  20. >            y=tempy
  21.  
  22. Also here?
  23.  
  24. -- 
  25. _        _  _         _  _          _                                   _
  26. \--- :_ :_ :_::- --: : ::_) _: --- \/ ----------------------------------/
  27. \\_: !_)!_,! !!_,  !,!_!! \(_! ::::..::::      nEVERmIND     :::'`::::_//
  28. `\------------------------------------------------------------- /\ ----/'
  29.   Nikola Smolenski - member of Team AMIGA             smolensk@eunet.yu
  30.  
  31.  
  32.